<?php

use think\migration\Seeder;

class HouseNatureSeeder extends Seeder
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * http://docs.phinx.org/en/latest/seeding.html
     */
    public function run()
    {
        $data = [
            ['name'=>'商品房'],
            ['name'=>'房改房'],
            ['name'=>'存量房'],
            ['name'=>'集资房'],
            ['name'=>'安居工程住房'],
            ['name'=>'经济适用住房'],
            ['name'=>'平价房'],
            ['name'=>'解困房'],
            ['name'=>'再上市房'],
            ['name'=>'廉价住房'],
        ];
        $table = $this->table('house_nature');
        $table->insert($data)->save();
    }
}